
#include "i2c_master_poll.h"
#include "8025T.h"

u8   read8025( u8  *datap )
{
	u8 stemp[8];
	SLAVE_ADDRESS = 0x50;
	cMemAddr = 1;
	I2C_ReadRegister1( 0  , 8, stemp);
	if ( TIM4_tout )
	{
		datap[0] = stemp[0];
		datap[1] = stemp[1];
		datap[2] = stemp[2];
		datap[3] = stemp[4];
		datap[4] = stemp[5];
		datap[5] = stemp[6];
		return 0 ;
	}
	else
		return 1;
}

